<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>积分换礼 - {$Config.sitename}</title>
    <link rel="stylesheet" href="__CSS__/global.css" />
    <link rel="stylesheet" href="__CSS__/jifen.css" />
    <Admintemplate file="Home/Public/global_js"/>
    <script src="__JS__/jquery.min.js"></script>
</head>

<body>
<div class="b-page">
    <include file="Public:header"/>
	<div class="n-div-bdy" style="padding-top:10px;">
		<div class="n-jf-lt">
			<div class="jf-lt-hd"><a href="{$midad.linkurl}" class="hd-ad"><img src="__FILESURL__{$midad.image}"></a></div>
			<div class="jf-lt-dv">
				 <foreach name="list" item="vo">
					<div class="b-jifen">
						<div class="b-jifen__body">
							<div class="b-jifen__t1"><a href="__WEBURL__/jifen/detail/{$vo.id}.html">{$vo.title}</a></div>
							<div class="b-jifen__t2">兑换价格：<span>{$vo.needjf}</span> 烘焙圈积分</div>
							<div class="b-jifen__t2">申请人数：<span>{$vo.requestnum}</span> 个</div>
							<div class="b-jifen__t2">已兑数量：<span>{$vo.dhnum}</span> 个</div>
							<div class="b-jifen__t2">库存数量：<span>{$vo.stocknum}</span> 个</div>
							<if condition="$vo.rcount gt 0">
								<div class="jifen-applied-btn">您已兑换</div>
							<else/>
								<a href="__WEBURL__/jifen/apply/" class="J_ajax_link b-jifen__t4" data-datas="infoid,{$vo.id}">我要兑换</a>
							</if>
							<div class="b-jifen__t5">
								<a href="__WEBURL__/jifen/detail/{$vo.id}.html"><img src="__FILESURL__{$vo.image}" alt="" ></a>
							</div>
						</div>
					</div>
				</foreach>
				
				<div class="clear"></div>
			</div>
			<div class="pager" style=" margin:40px auto;">{$Page}</div>
		</div>
		<div class="n-jf-rt">
			<div class="jf-rt-hd">
				<ul>
					<li><a href="/jifen" class="colord">积分换礼</a></li>
					<li><a href="/try">免费试用</a></li>
				</ul>
			</div>
			<div class="jf-rt-ad">
				<a href="{$rightad.linkurl}"><img src="__FILESURL__{$rightad.image}"></a>
			</div>
			
            <if condition="$userinfo.userid eq ''">
            <div class="b-jfLogin">
                <a href="__WEBURL__/user/login/register" class="b-jfLogin__btn">注册赢礼品</a>
                已有帐号? 点此<a href="__WEBURL__/user/login" class="b-jfLogin__btn2">登录</a>
                
            </div>
            </if>
			
			<div class="jf-rt-dt">
				<div class="jf-dt-tlt">兑换动态</div>
				<div class="jf-dt-dv">
					<empty name="applylist"><div class="nodata">暂无人兑换</div></empty>
                	<foreach name="applylist" item="al">
                    <div class="b-beiyouItem">
                        <a href="__WEBURL__/u/{$al.openuid}" class="b-beiyouItem__pic"><img src="{$al.uavatar|getUavatar}"><i class="b-popOtherZuopin__itemMask"></i></a>
                        <a href="__WEBURL__/u/{$al.openuid}" class="b-beiyouItem__name">{$al.nickname}</a>
                        <div class="b-beiyouItem__info">
                            <a href="__WEBURL__/jifen/detail/{$al.id}.html"> 兑换了 {$al.title}</a>
                        </div>
                        <div class="b-beiyouItem__time">{$al.create_time|format_time}</div>
                    </div>
                	</foreach>
				
				</div>
			
			</div>
			
			
			
			
		</div>
		<div class="clear"></div>
	</div>
    <include file="Public:footer"/>
</div>
<script src="__JS__/index.js"></script>
<script src="__JS__/jquery.common.js?v=20150101"></script>
<script src="__JS__/jquery.doajax.js"></script>
</body>
</html>